import { createRouter, createWebHashHistory } from 'vue-router'

import commonRouter from './modules/common'
import vodRouter from './modules/vod'

export const routes = [
  ...commonRouter,
  ...vodRouter,
  {
    path: '/:catchAll(.*)',
    redirect: '/404',
    hidden: true
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
